import java.io.*;
import java.util.*;

public class  MyReader {

    private static String getInput() {
        String s = "";
        InputStreamReader isr = new InputStreamReader(System.in);
        BufferedReader br = new BufferedReader(isr);
        try {
            s = br.readLine();

        } catch (IOException e) {}
        return s;
    }


    public static void main(String[] args) {
	System.out.println("enter filename: ");
	String fileName = getInput();
	BufferedReader reader;
	try {
	    reader = new BufferedReader(new FileReader(fileName));
	    String temp = reader.readLine();
	    while (temp != null) {
		System.out.println("'"+temp+"'");
		temp = reader.readLine();
	    }
	    reader.close();
	}
	catch(IOException e) {
	    System.out.println("File input failed. Please check the file and try again.");
	}
	
    }
}